#ifndef MATH_TEST_H
#define MATH_TEST_H

#include "stdafx.h"
#include <stdlib.h>
#include "gtest/gtest.h"

class MathTest : public ::testing::Test
{
protected:
	virtual void SetUp()
	{
		InitRand();
		x0 = randf();
		y0 = randf();
		z0 = randf();
		w0 = randf();
		x1 = randf();
		y1 = randf();
		z1 = randf();
		w1 = randf();

		//printf("MathTest::SetUp()\n");
		//printf(" (%g, %g, %g, %g)\n", x0, y0, z0, w0);
		//printf(" (%g, %g, %g, %g)\n", x1, y1, z1, w1);
	}

	static void InitRand()
	{
		srand(0);
	}

	static rs::f32 randf()
	{
		return (rs::f32)rand() * ((rs::f32)rand() / (rs::f32)RAND_MAX);
	}

protected:
	rs::f32		x0, y0, z0, w0;
	rs::f32		x1, y1, z1, w1;
};

#endif // ifndef MATH_TEST_H
